package com.ag.utils.vo;

import com.ag.utils.DoubleUtils;

/**
 * 
 * title: GeoCoordinate.java
 *
 * @author rplees
 * @email rplees.i.ly@gmail.com
 * @version 1.0
 * @created Jun 5, 2020 2:42:42 PM
 */
public class GeoAddrCoordinate extends GeoCoordinate {
	String addr;
	String province;
	String city; 
	String region;

	public static GeoAddrCoordinate build(Object lng, Object lat, String province, String city, String region, String addr) {
		GeoAddrCoordinate location = new GeoAddrCoordinate();
		location.setLng(DoubleUtils.parse(lng));
		location.setLat(DoubleUtils.parse(lat));
		location.setProvince(province);
		location.setCity(city);
		location.setRegion(region);
		location.setAddr(addr);
		return location;
	}

	public String getProvince() {
		return province;
	}


	public void setProvince(String province) {
		this.province = province;
	}


	public String getCity() {
		return city;
	}


	public void setCity(String city) {
		this.city = city;
	}


	public String getRegion() {
		return region;
	}


	public void setRegion(String region) {
		this.region = region;
	}


	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}
}
